package saves;

import java.io.Serializable;

public class Relacao implements Serializable {

    private static final long serialVersionUID = -2186357384262125232L;
    private int f1, f2;
    private float relacao;
    
    /*
     * What the relation index means, with regards to:
     * Factions:
     *  [.0, .2) -> War!
     *  [.2, .4) -> Boycott
     *  [.4, .6] -> Neutral
     *  (.6, .8] -> Partners (preferential commerce, open borders)
     *  (.8,  1] -> Allies (Act together military)
     * 
     * Ships:
     *  [.0, .1) -> Pursuit (f1 is activelly pursuing f2)
     *  [.1, .2) -> Hostile (f1 it will atack on sight, but won't follow if f2 tries to escape)
     *  [.2, .3) -> Ignoring (f1 won't open comunications)
     *  [.3, .4) -> Boycott (f1 won't trade)
     *  [.4, .6] -> Neutral (.5 is unknown)
     *  (.6, .8] -> Acquainted (better offers, more willing to help)
     *  (.8,  1] -> Friends (Will defend you in normal situations)
     */

    @SuppressWarnings("unused")
    private Relacao() {
    }

    public Relacao(int f1, int f2, float relacao) {
        this.f1 = f1;
        this.f2 = f2;
        this.relacao = relacao;
    }

    public int getF1() {
        return f1;
    }

    public int getF2() {
        return f2;
    }

    public float getRelacao() {
        return relacao;
    }
}